using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace GRPCDemo.Network.Interfaces
{
    public abstract class SocketListenerBase
    {
        public abstract void Start();

        public abstract void Stop();


        public event EventHandler<Socket?>? SocketConnected;

        protected void OnSocketConnected(Socket? client)
        {
            if (SocketConnected != null)
                SocketConnected.Invoke(this, client);
        }

    }
}
